import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
// 导入全局样式base.less
import './style/base.less'
// 导入时间插件
import moment from "moment";
moment.locale('zh-cn')
Vue.filter('getYear', (val) => {

  return moment(val).fromNow();
})
// 导入vant
import './utils/vant'
// 导入flexible
import 'amfe-flexible'
// 把store vuex实例挂载到vue实例上
import store from '@/store/index'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')